package com.example.demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.service.MainTheaterService;
import com.woniuxy.movice.entity.MainTheater;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
/**
 * 
 * @author 陈俊名
 *1.查看总影院的详细信息
 */
@Api("总影院的详细信息")
@RestController
@Data
@RequestMapping("/MainTheater")
public class MainTheaterController {
	@Resource
	private MainTheaterService mainTheaterService;
	@ApiOperation(value="总影院的详细信息",notes="返回指定影院详细信息")
	@RequestMapping("/info")
	@ResponseBody
	public MainTheater findByMainTheater() {
		System.out.println("laile");
		return mainTheaterService.findByMainTheater();
	}
}
